package com.ruoyi.solidDispose.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.solidDispose.mapper.WxfwjcInfoMapper;
import com.ruoyi.solidDispose.domain.WxfwjcInfo;
import com.ruoyi.solidDispose.service.IWxfwjcInfoService;

/**
 * 危险废物接受信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
@Service
public class WxfwjcInfoServiceImpl implements IWxfwjcInfoService 
{
    @Autowired
    private WxfwjcInfoMapper wxfwjcInfoMapper;

    /**
     * 查询危险废物接受信息
     * 
     * @param wxfwjcId 危险废物接受信息ID
     * @return 危险废物接受信息
     */
    @Override
    public WxfwjcInfo selectWxfwjcInfoById(Long wxfwjcId)
    {
        return wxfwjcInfoMapper.selectWxfwjcInfoById(wxfwjcId);
    }

    /**
     * 查询危险废物接受信息列表
     * 
     * @param wxfwjcInfo 危险废物接受信息
     * @return 危险废物接受信息
     */
    @Override
    public List<WxfwjcInfo> selectWxfwjcInfoList(WxfwjcInfo wxfwjcInfo)
    {
        return wxfwjcInfoMapper.selectWxfwjcInfoList(wxfwjcInfo);
    }

    /**
     * 新增危险废物接受信息
     * 
     * @param wxfwjcInfo 危险废物接受信息
     * @return 结果
     */
    @Override
    public int insertWxfwjcInfo(WxfwjcInfo wxfwjcInfo)
    {
        wxfwjcInfo.setCreateTime(DateUtils.getNowDate());
        return wxfwjcInfoMapper.insertWxfwjcInfo(wxfwjcInfo);
    }

    /**
     * 修改危险废物接受信息
     * 
     * @param wxfwjcInfo 危险废物接受信息
     * @return 结果
     */
    @Override
    public int updateWxfwjcInfo(WxfwjcInfo wxfwjcInfo)
    {
        wxfwjcInfo.setUpdateTime(DateUtils.getNowDate());
        return wxfwjcInfoMapper.updateWxfwjcInfo(wxfwjcInfo);
    }

    /**
     * 批量删除危险废物接受信息
     * 
     * @param wxfwjcIds 需要删除的危险废物接受信息ID
     * @return 结果
     */
    @Override
    public int deleteWxfwjcInfoByIds(Long[] wxfwjcIds)
    {
        return wxfwjcInfoMapper.deleteWxfwjcInfoByIds(wxfwjcIds);
    }

    /**
     * 删除危险废物接受信息信息
     * 
     * @param wxfwjcId 危险废物接受信息ID
     * @return 结果
     */
    @Override
    public int deleteWxfwjcInfoById(Long wxfwjcId)
    {
        return wxfwjcInfoMapper.deleteWxfwjcInfoById(wxfwjcId);
    }
}
